﻿using System.Linq;
using NpCrm.DataAccess.Contracts;
using NpCrm.DataAccess.Core;
using NpCrm.Domain;

namespace NpCrm.DataAccess.Repositories
{
    public class SiteContentRepository : RepositoryBase<SiteContent, int>, ISiteContentRepository
    {
        public SiteContent GetByName(string name)
        {
            return Query(sc => sc.Name.ToLower() == name.ToLower()).FirstOrDefault();
        }
    }
}
